.class Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;
.super Ljava/lang/Object;
.source "AddressListActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/AddressListActivity$MyAdapter;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    .line 668
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;)Lcom/example/m6wmr/AddressListActivity$MyAdapter;
    .locals 1

    .prologue
    .line 668
    iget-object v0, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    return-object v0
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 674
    invoke-static {}, Lmyapp/Util;->isFastDoubleClick()Z

    move-result v3

    if-eqz v3, :cond_0

    .line 729
    :goto_0
    return-void

    .line 678
    :cond_0
    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    invoke-virtual {v3}, Lbean/AddressBean;->getId()Ljava/lang/String;

    move-result-object v0

    .line 681
    .local v0, "adrressid":Ljava/lang/String;
    const/4 v1, 0x0

    .local v1, "i":I
    :goto_1
    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-lt v1, v3, :cond_1

    .line 693
    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    invoke-virtual {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->notifyDataSetChanged()V

    .line 696
    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    const-string v4, "addressdefalut"

    const/4 v5, 0x0

    invoke-virtual {v3, v4, v5}, Lcom/example/m6wmr/AddressListActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v2

    .line 697
    .local v2, "sharedPreferences":Landroid/content/SharedPreferences;
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "addressid"

    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    invoke-virtual {v3}, Lbean/AddressBean;->getId()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v4, v5, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 698
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "address"

    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    invoke-virtual {v3}, Lbean/AddressBean;->getAddress()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v4, v5, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 699
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "name"

    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    invoke-virtual {v3}, Lbean/AddressBean;->getContactname()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v4, v5, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 700
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "sex"

    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    invoke-virtual {v3}, Lbean/AddressBean;->getSex()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v4, v5, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 701
    invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v4

    const-string v5, "phone"

    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v6

    invoke-virtual {v3, v6}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    invoke-virtual {v3}, Lbean/AddressBean;->getPhone()Ljava/lang/String;

    move-result-object v3

    invoke-interface {v4, v5, v3}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v3

    invoke-interface {v3}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 705
    new-instance v3, Ljava/lang/Thread;

    new-instance v4, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1$1;

    invoke-direct {v4, p0, v0}, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1$1;-><init>(Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;Ljava/lang/String;)V

    invoke-direct {v3, v4}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 726
    invoke-virtual {v3}, Ljava/lang/Thread;->start()V

    goto/16 :goto_0

    .line 682
    .end local v2    # "sharedPreferences":Landroid/content/SharedPreferences;
    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v3

    if-ne v3, v1, :cond_2

    .line 683
    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    const-string v4, "1"

    invoke-virtual {v3, v4}, Lbean/AddressBean;->setIs_default(Ljava/lang/String;)V

    .line 681
    :goto_2
    add-int/lit8 v1, v1, 0x1

    goto/16 :goto_1

    .line 687
    :cond_2
    iget-object v3, p0, Lcom/example/m6wmr/AddressListActivity$MyAdapter$1;->this$1:Lcom/example/m6wmr/AddressListActivity$MyAdapter;

    # getter for: Lcom/example/m6wmr/AddressListActivity$MyAdapter;->this$0:Lcom/example/m6wmr/AddressListActivity;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity$MyAdapter;->access$1(Lcom/example/m6wmr/AddressListActivity$MyAdapter;)Lcom/example/m6wmr/AddressListActivity;

    move-result-object v3

    # getter for: Lcom/example/m6wmr/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/example/m6wmr/AddressListActivity;->access$0(Lcom/example/m6wmr/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lbean/AddressBean;

    const-string v4, "0"

    invoke-virtual {v3, v4}, Lbean/AddressBean;->setIs_default(Ljava/lang/String;)V

    goto :goto_2
.end method
